<?php

$criteria=new CDbCriteria;
$criteria->condition='`t`.`status`=1 AND `job`.`uid`=:uid';
$criteria->params=array(':uid'=>Yii::app()->user->id);
$criteria->with=array('user','job');

$dataProvider=new CActiveDataProvider('JobApply',array(
    'criteria'=>$criteria,
    'pagination'=>array(
        'pageSize'=>20,
    ),
));

$session=new CHttpSession();
$session->open();
$session['i']=1;

?>

<div class="detailContent22 wp" style="min-height: 1335px">
    <table width="100%" cellspacing="0" cellpadding="0" border="0" class="table3 paddingbotton80 ">
        <tbody><tr>
            <th width="41%" bgcolor="#efefef" align="center" class="th1">招聘职位</th>
            <th width="15%" bgcolor="#efefef" class="th1">发送时间</th>
            <th width="16%" bgcolor="#efefef" align="center" class="th1">应聘者</th>
            <th width="10%" bgcolor="#efefef" align="center" class="th1">ID号</th>
            <th width="18%" bgcolor="#efefef" align="center">操作指令</th>
        </tr>

        <?php
        if(!empty($dataProvider->data))
            $this->widget('zii.widgets.CListView', array(
                'dataProvider'=>$dataProvider,
                'itemView'=>'_jobApply',
                'ajaxUpdate'=>false,
                'template'=>"{items}\n{pager}" ,
//        'itemsTagName'=>'ul',
//        'itemsCssClass'=>'tb',
            ));
        ?>
        </tbody></table>
</div>